package com.entor.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.entor.model.FinType;
import com.entor.service.FinTypeService;

@RequestMapping("/ftc")
@Controller
public class FinTypeController {
	@Autowired
	private FinTypeService fts;
	
	@RequestMapping("/find/{id}.coc")
	@ResponseBody
	public List<FinType> find(@PathVariable(value="id") Integer id) {
		FinType t = new FinType();
		t.setId(id);
		return fts.find(t);	
	}
}
